Electronic device and operation method thereof

ABSTRACT

According to an embodiment of the disclosure, an electronic device may include: a display, a memory, and a processor operatively connected to the display and the memory. According to an embodiment, the memory may store instructions that, when executed, cause the processor to: obtain a first image of a first shape, obtain linear information indicating a morphological characteristic of an object in the first image of the first shape, determine a conversion method for converting the first image of the first shape into an image of a second shape based on the obtained linear information, convert the first image of the first shape into a second image of the second shape based on the determined conversion method, and control the display to display the converted second image of the second shape on the display.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/KR2022/007036 designating the United States, filed on May 17, 2022,in the Korean Intellectual Property Receiving Office and claimingpriority to Korean Patent Application No. 10-2021-0090448, filed on Jul.9, 2021, in the Korean Intellectual Property Office, the disclosures ofwhich are incorporated by reference herein in their entireties.

BACKGROUND Field

The disclosure relates to an electronic device and an operating methodthereof.

Description of Related Art

While various wearable devices are developed, shapes of displays mountedon the wearable devices are also changed in various manners. Anelectronic device may provide various pieces of visual information to auser by displaying multimedia including images on various types ofdisplays.

When converting a rectangular image into a circular image in a fixedimage conversion method without considering characteristics of an objectincluded in an image, an object included in an image may be distorted.

SUMMARY

Embodiments of the disclosure provide an electronic device that iscapable of displaying the converted image with improved quality on adisplay by determining an image conversion method that reducesdistortion when converting a rectangular image to a circular image basedon information indicating characteristics of an image.

According to an embodiment of the disclosure, an electronic device mayinclude: a display, a memory, and a processor operatively connected tothe display and the memory. According to an embodiment, the memory maystore instructions that, when executed, cause the processor to: obtain afirst image of a first shape, obtain linear information indicating amorphological characteristic of an object in the first image of thefirst shape, determine a conversion method for converting the firstimage of the first shape into an image of a second shape based on theobtained linear information, convert the first image of the first shapeinto a second image of the second shape based on the determinedconversion method, and display the converted second image of the secondshape on the display.

Furthermore, according to an embodiment of the disclosure, an operationmethod of an electronic device may include: obtaining a first image of afirst shape, obtaining linear information indicating a morphologicalcharacteristic of an object in the first image of the first shape,determining a conversion method for converting the first image of thefirst shape into an image of a second shape based on the obtained linearinformation, converting the first image of the first shape into a secondimage of the second shape based on the determined conversion method, anddisplaying the converted second image of the second shape on a display.

According to various embodiments of the disclosure, it is possible toprovide an electronic device that is capable of displaying the convertedimage with improved quality on a circular display by determining animage conversion method that reduces distortion when converting arectangular image to a circular image based on information indicatingcharacteristics of an image.

Besides, a variety of effects directly or indirectly understood throughthis disclosure may be provided.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features and advantages of certainembodiments of the present disclosure will be more apparent from thefollowing detailed description, taken in conjunction with theaccompanying drawings, in which:

FIG. 1 is a block diagram illustrating an example electronic device in anetwork environment, according to various embodiments;

FIG. 2 is a block diagram illustrating an example configuration of anelectronic device, according to various embodiments;

FIG. 3 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

FIG. 4 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

FIG. 5 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

FIG. 6 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

FIG. 7 is a diagram illustrating an example of an electronic deviceobtaining linear information indicating a characteristic of an image,according to various embodiments;

FIG. 8 illustrates an example image conversion method in which anelectronic device converts a shape of an image from a rectangular shapeto a circular shape or an edge-rounded shape, according to variousembodiments;

FIG. 9 illustrates an example of an electronic device determining animage conversion method by obtaining linear information from an image,according to various embodiments;

FIG. 10 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments;

FIG. 11 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments;

FIG. 12 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments;

FIG. 13 illustrates an example of an electronic device converting arectangular image into a circular image by separating a background andan object, according to various embodiments;

FIG. 14 illustrates an example of converting a rectangular image into acircular image using an electronic device and an external electronicdevice, according to various embodiments;

FIG. 15 is a flowchart illustrating an example method of operating aprocessor of an electronic device, according to various embodiments; and

FIG. 16 is a flowchart illustrating an example operating method of anelectronic device, according to various embodiments.

With regard to description of drawings, the same or similar componentswill be marked by the same or similar reference signs.

DETAILED DESCRIPTION

FIG. 1 is a block diagram illustrating an example electronic device 101in a network environment 100 according to various embodiments. Referringto FIG. 1 , the electronic device 101 in the network environment 100 maycommunicate with an electronic device 102 via a first network 198 (e.g.,a short-range wireless communication network), or at least one of anelectronic device 104 or a server 108 via a second network 199 (e.g., along-range wireless communication network). According to an embodiment,the electronic device 101 may communicate with the electronic device 104via the server 108. According to an embodiment, the electronic device101 may include a processor 120, memory 130, an input module 150, asound output module 155, a display module 160, an audio module 170, asensor module 176, an interface 177, a connecting terminal 178, a hapticmodule 179, a camera module 180, a power management module 188, abattery 189, a communication module 190, a subscriber identificationmodule (SIM) 196, or an antenna module 197. In some embodiments, atleast one of the components (e.g., the connecting terminal 178) may beomitted from the electronic device 101, or one or more other componentsmay be added in the electronic device 101. In some embodiments, some ofthe components (e.g., the sensor module 176, the camera module 180, orthe antenna module 197) may be implemented as a single component (e.g.,the display module 160).

The processor 120 may execute, for example, software (e.g., a program140) to control at least one other component (e.g., a hardware orsoftware component) of the electronic device 101 coupled with theprocessor 120, and may perform various data processing or computation.According to one an embodiment, as at least part of the data processingor computation, the processor 120 may store a command or data receivedfrom another component (e.g., the sensor module 176 or the communicationmodule 190) in volatile memory 132, process the command or the datastored in the volatile memory 132, and store resulting data innon-volatile memory 134. According to an embodiment, the processor 120may include a main processor 121 (e.g., a central processing unit (CPU)or an application processor (AP)), or an auxiliary processor 123 (e.g.,a graphics processing unit (GPU), a neural processing unit (NPU), animage signal processor (ISP), a sensor hub processor, or a communicationprocessor (CP)) that is operable independently from, or in conjunctionwith, the main processor 121. For example, when the electronic device101 includes the main processor 121 and the auxiliary processor 123, theauxiliary processor 123 may be adapted to consume less power than themain processor 121, or to be specific to a specified function. Theauxiliary processor 123 may be implemented as separate from, or as partof the main processor 121.

The auxiliary processor 123 may control at least some of functions orstates related to at least one component (e.g., the display module 160,the sensor module 176, or the communication module 190) among thecomponents of the electronic device 101, instead of the main processor121 while the main processor 121 is in an inactive (e.g., sleep) state,or together with the main processor 121 while the main processor 121 isin an active state (e.g., executing an application). According to anembodiment, the auxiliary processor 123 (e.g., an image signal processoror a communication processor) may be implemented as part of anothercomponent (e.g., the camera module 180 or the communication module 190)functionally related to the auxiliary processor 123. According to anembodiment, the auxiliary processor 123 (e.g., the neural processingunit) may include a hardware structure specified for artificialintelligence model processing. An artificial intelligence model may begenerated by machine learning. Such learning may be performed, e.g., bythe electronic device 101 where the artificial intelligence is performedor via a separate server (e.g., the server 108). Learning algorithms mayinclude, but are not limited to, e.g., supervised learning, unsupervisedlearning, semi-supervised learning, or reinforcement learning. Theartificial intelligence model may include a plurality of artificialneural network layers. The artificial neural network may be a deepneural network (DNN), a convolutional neural network (CNN), a recurrentneural network (RNN), a restricted boltzmann machine (RBM), a deepbelief network (DBN), a bidirectional recurrent deep neural network(BRDNN), deep Q-network or a combination of two or more thereof but isnot limited thereto. The artificial intelligence model may, additionallyor alternatively, include a software structure other than the hardwarestructure.

The memory 130 may store various data used by at least one component(e.g., the processor 120 or the sensor module 176) of the electronicdevice 101. The various data may include, for example, software (e.g.,the program 140) and input data or output data for a command relatedthereto. The memory 130 may include the volatile memory 132 or thenon-volatile memory 134.

The program 140 may be stored in the memory 130 as software, and mayinclude, for example, an operating system (OS) 142, middleware 144, oran application 146.

The input module 150 may receive a command or data to be used by anothercomponent (e.g., the processor 120) of the electronic device 101, fromthe outside (e.g., a user) of the electronic device 101. The inputmodule 150 may include, for example, a microphone, a mouse, a keyboard,a key (e.g., a button), or a digital pen (e.g., a stylus pen).

The sound output module 155 may output sound signals to the outside ofthe electronic device 101. The sound output module 155 may include, forexample, a speaker or a receiver. The speaker may be used for generalpurposes, such as playing multimedia or playing record. The receiver maybe used for receiving incoming calls. According to an embodiment, thereceiver may be implemented as separate from, or as part of the speaker.

The display module 160 may visually provide information to the outside(e.g., a user) of the electronic device 101. The display module 160 mayinclude, for example, a display, a hologram device, or a projector andcontrol circuitry to control a corresponding one of the display,hologram device, and projector. According to an embodiment, the displaymodule 160 may include a touch sensor adapted to detect a touch, or apressure sensor adapted to measure the intensity of force incurred bythe touch.

The audio module 170 may convert a sound into an electrical signal andvice versa. According to an embodiment, the audio module 170 may obtainthe sound via the input module 150, or output the sound via the soundoutput module 155 or a headphone of an external electronic device (e.g.,an electronic device 102) directly (e.g., wiredly) or wirelessly coupledwith the electronic device 101.

The sensor module 176 may detect an operational state (e.g., power ortemperature) of the electronic device 101 or an environmental state(e.g., a state of a user) external to the electronic device 101, andthen generate an electrical signal or data value corresponding to thedetected state. According to an embodiment, the sensor module 176 mayinclude, for example, a gesture sensor, a gyro sensor, an atmosphericpressure sensor, a magnetic sensor, an acceleration sensor, a gripsensor, a proximity sensor, a color sensor, an infrared (IR) sensor, abiometric sensor, a temperature sensor, a humidity sensor, or anilluminance sensor.

The interface 177 may support one or more specified protocols to be usedfor the electronic device 101 to be coupled with the external electronicdevice (e.g., the electronic device 102) directly (e.g., wiredly) orwirelessly. According to an embodiment, the interface 177 may include,for example, a high definition multimedia interface (HDMI), a universalserial bus (USB) interface, a secure digital (SD) card interface, or anaudio interface.

A connecting terminal 178 may include a connector via which theelectronic device 101 may be physically connected with the externalelectronic device (e.g., the electronic device 102). According to anembodiment, the connecting terminal 178 may include, for example, a HDMIconnector, a USB connector, a SD card connector, or an audio connector(e.g., a headphone connector).

The haptic module 179 may convert an electrical signal into a mechanicalstimulus (e.g., a vibration or a movement) or electrical stimulus whichmay be recognized by a user via his tactile sensation or kinestheticsensation. According to an embodiment, the haptic module 179 mayinclude, for example, a motor, a piezoelectric element, or an electricstimulator.

The camera module 180 may capture a still image or moving images.According to an embodiment, the camera module 180 may include one ormore lenses, image sensors, image signal processors, or flashes.

The power management module 188 may manage power supplied to theelectronic device 101. According to an embodiment, the power managementmodule 188 may be implemented as at least part of, for example, a powermanagement integrated circuit (PMIC).

The battery 189 may supply power to at least one component of theelectronic device 101. According to an embodiment, the battery 189 mayinclude, for example, a primary cell which is not rechargeable, asecondary cell which is rechargeable, or a fuel cell.

The communication module 190 may support establishing a direct (e.g.,wired) communication channel or a wireless communication channel betweenthe electronic device 101 and the external electronic device (e.g., theelectronic device 102, the electronic device 104, or the server 108) andperforming communication via the established communication channel. Thecommunication module 190 may include one or more communicationprocessors that are operable independently from the processor 120 (e.g.,the application processor (AP)) and supports a direct (e.g., wired)communication or a wireless communication. According to an embodiment,the communication module 190 may include a wireless communication module192 (e.g., a cellular communication module, a short-range wirelesscommunication module, or a global navigation satellite system (GNSS)communication module) or a wired communication module 194 (e.g., a localarea network (LAN) communication module or a power line communication(PLC) module). A corresponding one of these communication modules maycommunicate with the external electronic device via the first network198 (e.g., a short-range communication network, such as Bluetooth™,wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA))or the second network 199 (e.g., a long-range communication network,such as a legacy cellular network, a 5G network, a next-generationcommunication network, the Internet, or a computer network (e.g., LAN orwide area network (WAN)). These various types of communication modulesmay be implemented as a single component (e.g., a single chip), or maybe implemented as multi components (e.g., multi chips) separate fromeach other. The wireless communication module 192 may identify andauthenticate the electronic device 101 in a communication network, suchas the first network 198 or the second network 199, using subscriberinformation (e.g., international mobile subscriber identity (IMSI))stored in the subscriber identification module 196.

The wireless communication module 192 may support a 5G network, after a4G network, and next-generation communication technology, e.g., newradio (NR) access technology. The NR access technology may supportenhanced mobile broadband (eMBB), massive machine type communications(mMTC), or ultra-reliable and low-latency communications (URLLC). Thewireless communication module 192 may support a high-frequency band(e.g., the mmWave band) to achieve, e.g., a high data transmission rate.The wireless communication module 192 may support various technologiesfor securing performance on a high-frequency band, such as, e.g.,beamforming, massive multiple-input and multiple-output (massive MIMO),full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, orlarge scale antenna. The wireless communication module 192 may supportvarious requirements specified in the electronic device 101, an externalelectronic device (e.g., the electronic device 104), or a network system(e.g., the second network 199). According to an embodiment, the wirelesscommunication module 192 may support a peak data rate (e.g., 20 Gbps ormore) for implementing eMBB, loss coverage (e.g., 164 dB or less) forimplementing mMTC, or U-plane latency (e.g., 0.5 ms or less for each ofdownlink (DL) and uplink (UL), or a round trip of 1 ms or less) forimplementing URLLC.

The antenna module 197 may transmit or receive a signal or power to orfrom the outside (e.g., the external electronic device) of theelectronic device 101. According to an embodiment, the antenna module197 may include an antenna including a radiating element including aconductive material or a conductive pattern formed in or on a substrate(e.g., a printed circuit board (PCB)). According to an embodiment, theantenna module 197 may include a plurality of antennas (e.g., arrayantennas). In such a case, at least one antenna appropriate for acommunication scheme used in the communication network, such as thefirst network 198 or the second network 199, may be selected, forexample, by the communication module 190 (e.g., the wirelesscommunication module 192) from the plurality of antennas. The signal orthe power may then be transmitted or received between the communicationmodule 190 and the external electronic device via the selected at leastone antenna. According to an embodiment, another component (e.g., aradio frequency integrated circuit (RFIC)) other than the radiatingelement may be additionally formed as part of the antenna module 197.

According to various embodiments, the antenna module 197 may form ammWave antenna module. According to an embodiment, the mmWave antennamodule may include a printed circuit board, a RFIC disposed on a firstsurface (e.g., the bottom surface) of the printed circuit board, oradjacent to the first surface and capable of supporting a designatedhigh-frequency band (e.g., the mmWave band), and a plurality of antennas(e.g., array antennas) disposed on a second surface (e.g., the top or aside surface) of the printed circuit board, or adjacent to the secondsurface and capable of transmitting or receiving signals of thedesignated high-frequency band.

At least some of the above-described components may be coupled mutuallyand communicate signals (e.g., commands or data) therebetween via aninter-peripheral communication scheme (e.g., a bus, general purposeinput and output (GPIO), serial peripheral interface (SPI), or mobileindustry processor interface (MIPI)).

According to an embodiment, commands or data may be transmitted orreceived between the electronic device 101 and the external electronicdevice 104 via the server 108 coupled with the second network 199. Eachof the electronic devices 102 or 104 may be a device of a same type as,or a different type, from the electronic device 101. According to anembodiment, all or some of operations to be executed at the electronicdevice 101 may be executed at one or more of the external electronicdevices 102, 104, or 108. For example, if the electronic device 101should perform a function or a service automatically, or in response toa request from a user or another device, the electronic device 101,instead of, or in addition to, executing the function or the service,may request the one or more external electronic devices to perform atleast part of the function or the service. The one or more externalelectronic devices receiving the request may perform the at least partof the function or the service requested, or an additional function oran additional service related to the request, and transfer an outcome ofthe performing to the electronic device 101. The electronic device 101may provide the outcome, with or without further processing of theoutcome, as at least part of a reply to the request. To that end, acloud computing, distributed computing, mobile edge computing (MEC), orclient-server computing technology may be used, for example. Theelectronic device 101 may provide ultra low-latency services using,e.g., distributed computing or mobile edge computing. In an embodiment,the external electronic device 104 may include an internet-of-things(IoT) device. The server 108 may be an intelligent server using machinelearning and/or a neural network. According to an embodiment, theexternal electronic device 104 or the server 108 may be included in thesecond network 199. The electronic device 101 may be applied tointelligent services (e.g., smart home, smart city, smart car, orhealthcare) based on 5G communication technology or IoT-relatedtechnology.

FIG. 2 is a block diagram illustrating an example configuration of anelectronic device, according to various embodiments.

According to an embodiment, an electronic device 201 (e.g., theelectronic device 101 of FIG. 1 ) may include a display 210 (e.g., thedisplay module 160 of FIG. 1 ), a memory 220 (e.g., the memory 130 inFIG. 1 ), and a processor (e.g., including processing circuitry) 230(e.g., the processor 120 of FIG. 1 ).

According to an embodiment, the display 210 may visually provideinformation to the outside (e.g., the user) of the electronic device201. The display 210 may include, for example, and without limitation, adisplay, a hologram device, or a control circuit for controlling aprojector and a corresponding device. According to an embodiment, thedisplay 210 may have various shapes. For example, the display 210 mayinclude a circular, edge-rounded, or rectangular display area. Throughvarious shapes of display areas, the display 210 may expose informationto the outside or may provide the information to a user According to anembodiment, when the electronic device 201 is a wearable device (e.g., asmart watch) capable of being worn on the user's body, the display areaof the display 210 may have a circular shape or an edge-rounded shape.

According to an embodiment, the memory 220 may store various pieces ofdata (or information). According to an embodiment, the memory 220 maystore at least one program, at least one application, data, orinstructions, which are executed by the processor 230. According to anembodiment, the memory 220 may include at least part of the memory 130illustrated in FIG. 1 . According to an embodiment, the memory 220 maystore information or instructions that allow at least part of operationsof the electronic device 201, which will be described later, to beperformed. According to an embodiment, the memory 220 may storeinstructions associated with a plurality of applications executed by theprocessor 230. According to an embodiment, the memory 220 may storeinformation necessary for an operation of the electronic device 201and/or information associated with the user.

According to an embodiment, the memory 220 may store various pieces ofinformation to be visually provided to the user through the display 210.For example, the memory 220 may store at least one image to be displayedon the display 210. For example, the memory 220 may store at least onevideo to be displayed on the display 210. Hereinafter, an image may beinterpreted as including a video or an image included in the video.

According to an embodiment, the memory 220 may include a databaseincluding information to be used during image conversion. According toan embodiment, the database (or the memory 220) may include at least oneimage (or a video) and/or at least one image conversion method (or anequation for image conversion) to be used during image conversion.

According to an embodiment, the processor 230 may be operativelyconnected to other configurations of the electronic device 201 and mayinclude various processing circuitry configured to control variousoperations of the electronic device 201. For example, the processor 230may include an application processor of the electronic device 201. Theprocessor 230 may perform various operations of the electronic device201 by executing one or more instructions stored in the memory 220.Hereinafter, operations described as being performed by the electronicdevice 201 may be referred to as being performed by the processor 230.

According to an embodiment, the processor 230 may transform a shape (oran exterior appearance) of an image based on the shape of the displayarea of the display 210. For example, the processor 230 may warp a shape(or an exterior appearance) of an image based on the shape of thedisplay area of the display 210. In an embodiment, when the display areaof the display 210 has a circular shape or an edge-rounded shape, theprocessor 230 may transform (or warp) a rectangular image into acircular shape or an edge-rounded shape. In an embodiment, when thedisplay area of the display 210 is a circular shape or an edge-roundedshape, the processor 230 may transform (or warp) the rectangular imageinto a circular or edge-rounded image in a manner having less distortiondepending on an individual characteristic of the rectangular image.

According to an embodiment, the processor 230 may transform (or warp)the shape of a raw image to reduce the loss of information included in araw image. In an embodiment, the processor 230 may determine a methodfor transforming (or warping) the shape of an image capable of reducingloss of information included in the raw image. In an embodiment, withoutusing a uniform image conversion method, the processor 230 may determine(or select) an image conversion method that reduces the distortion ofinformation, which is included in the image during conversion, or theloss of information depending on the individual characteristics of theraw image. The processor 230 may transform (or warp) the shape of theraw image depending on the determined image conversion method and maydisplay the transformed (or warped) image on the display 210. Forexample, the processor 230 may convert (or warp) a rectangular imageinto a circular or edge-rounded image by transforming (or warping) arectangular image in a manner having less distortion depending on theindividual characteristic of the rectangular image (e.g., a raw image).The processor 230 may display the transformed (or warped) image on thedisplay 210 having a circular or an edge-rounded display area.

According to an embodiment, the processor 230 may analyze an image(e.g., an original image) and then may obtain (or generate) linearinformation indicating a characteristic of the corresponding rectangularimage as a result of the analysis. According to an embodiment, thelinear information indicating the characteristic of the image mayindicate a morphological characteristic of at least one object includedin the image or the background of the image. For example, the linearinformation indicating the characteristic of the image may includelinear information obtained from an image through Hough transform (orHough line transform). For example, the linear information indicatingthe characteristic of the image may include at least one lineinformation or at least one straight line information, which is detectedfrom the image through the Hough transform. For example, the linearinformation indicating the characteristic of the image may includeinformation about a Hough line detected from the image through the Houghtransform. For example, the linear information may include a Hough lineor may include information about a Hough line.

In various embodiments, when converting a rectangular image to acircular or edge-rounded image, the processor 230 may perform apreprocessing of converting (or resizing) a rectangular image into asquare image to reduce the sense of difference that a user may feel. Theprocessor 230 may analyze the preprocessed square image and then mayobtain linear information (e.g., linear information obtained throughHough transform) indicating a characteristic of the corresponding squareimage. For example, a square image (or an image having a square shape)may correspond to an image in which four sides (or edges) forming theshape of an image have the same length of a first value. For example, asquare image may correspond to an image in which four sides forming theshape of the image have the same length. For example, a rectangularimage (or an image having a rectangle shape) may correspond to an imagein which two among four sides forming the shape of the image have alength of the first value, and the other two sides have a length of asecond value different from the first value. For example, a rectangularimage may correspond to an image in which two sides, which are met atone vertex, from among the four sides forming the shape of the imagehave different lengths from each other (e.g., having a ratio value(e.g., 1:2)).

According to an embodiment, when converting a rectangular image into acircular or an edge-rounded image using the obtained linear information,the processor 230 may determine an image conversion method for reducinga change in an object of an image. For example, the rectangular imagemay be a raw image having a rectangle or square shape, or may be animage obtained by performing a preprocessing of converting a rectangularraw image into a square image. According to an embodiment, whenconverting (or warping) the rectangular image, the processor 230 maydetermine an image conversion method for reducing the distortion of theobject of the image, using the obtained linear information. According toan embodiment, the processor 230 may convert (or warp) a rectangularimage into a circular or edge-rounded image using the image conversionmethod determined depending on the characteristic of an individualimage, not applying a consistent image conversion method to differentimages. For example, the processor 230 may determine (or select) atleast one image conversion method in a database including at least oneimage conversion method (or an equation for image conversion), which isto be used when converting the image stored in the memory 220, using theobtained linear information. The processor 230 may convert (or warp) arectangular image into a circular or edge-rounded image using the atleast one image conversion method thus determined (or selected).

In various embodiments, the processor 230 may determine the imageconversion method for reducing the distortion of the object of the imageusing artificial intelligence. According to an embodiment, the processor230 may learn an image using a machine learning model. For example, theprocessor 230 may learn characteristics of an image using the machinelearning model and then may determine an image conversion method forreducing the distortion of the object of the image during imageconversion (or warping) depending on the learned result. For example,when converting (or warping) an image of a quadrangle (e.g., rectangleor square) into a circular image using the machine learning model, theprocessor 230 may determine an image conversion method in which a changein an object or feature (e.g., feature or linear information) of animage is small or minimized. In an embodiment, the processor 230 mayconvert (or warp) a rectangular image into a circular image in the imageconversion method determined using the machine learning model.

According to an embodiment, the processor 230 may display the converted(or warped) image on the display 210. The processor 230 may display theimage converted (or warped) using the image conversion method forreducing the distortion of the object of the image depending on thecharacteristic of an individual image, on the display 210. For example,a raw image may correspond to a rectangular (rectangular or square)shape; and, the display 210 may include a circular or edge-roundeddisplay area. The processor 230 may be configured to display an image onthe display 210 with a circular or edge-rounded display area, in a statewhere image distortion or omission of information included in the imageis reduced. The processor 230 may convert (or warp) the raw image in animage conversion method determined depending on characteristics of theraw image and then may display the converted (or warped) image on thedisplay 210.

In various embodiments, the processor 230 may provide an augmentedreality service. According to an embodiment, the processor 230 maydisplay an image, which is converted (or warped) in the above-describedmanner, on the augmented reality service. For example, the processor 230may provide the augmented reality service by displaying a circular (oredge-rounded) image converted (or warped) in an image conversion methodfor reducing the distortion of an object of the image on at least partof a transparent display.

In various embodiments, the electronic device may store the imageconversion method (or an equation for image conversion), which is usedto transform a rectangular image into a circular image, in the memory220. According to an embodiment, the electronic device may receive, froma user, a user input for enlarging, reducing, or moving the convertedcircular image. The electronic device may restore (or inverselytransform) a circular image to an original rectangular image using thestored image conversion method, based on the received user input. Theelectronic device may enlarge, reduce, or move the restored originalrectangular image based on the received user input.

Various embodiments for displaying a rectangular image having reduceddistortion of the object of the image on a display having a circular oredge-rounded display area are described in greater detail below withreference to the drawings.

FIG. 3 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

Referring to FIG. 3 , to reduce image distortion or the sense ofdifference that a user may feel, an electronic device (e.g., theelectronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2 )may perform a preprocessing of converting (or resizing) a rectangularimage into a square image.

Referring to FIG. 3 , the electronic device according to an embodimentmay generate a square image by resizing a rectangular raw image based ona length of the relatively-short side.

FIG. 3 illustrates a first image 311 corresponding to a raw image and asecond image 312 corresponding to a converted image. According to anembodiment, the first image 311 may correspond to a rectangular imagehaving horizontal and vertical lengths that are different from eachother. According to an embodiment, the electronic device may reduce thehorizontal length of the first image 311. For example, a length of afirst side of the first image 311 may correspond to a first value 301,and a length of a second side of the first image 311 may correspond to asecond value 302. According to an embodiment, an electronic device mayconvert the first image 311 into the second image 312 by resizing thefirst image 311. For example, the electronic device may generate thesecond image 312 from the first image 311 by reducing the length of thefirst side of the first image 311 from the first value 301 to the secondvalue 302.

FIG. 3 illustrates a third image 313 corresponding to a raw image and afourth image 314 corresponding to a converted image. According to anembodiment, the third image 313 may correspond to a rectangular imagehaving horizontal and vertical lengths that are different from eachother. According to an embodiment, the electronic device may reduce thevertical length of the third image 313. For example, a length of a firstside of the third image 313 may correspond to the third value 303, and alength of a second side of the third image 313 may correspond to afourth value 304. According to an embodiment, an electronic device mayconvert the third image 313 into the fourth image 314 by resizing thethird image 313. For example, the electronic device may generate thefourth image 314 from the third first image 313 by reducing the lengthof the second side of the third image 313 from the fourth value 304 tothe third value 303.

FIG. 4 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

Referring to FIG. 4 , to reduce image distortion or the sense ofdifference that a user may feel, an electronic device (e.g., theelectronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2 )may perform a preprocessing of converting (or resizing) a rectangularimage into a square image.

Referring to FIG. 4 , the electronic device according to an embodimentmay distinguish between a background and an object (or a main object)that are included in a rectangular raw image. When the background issimple, the electronic device according to an embodiment may reduce thebackground and then may change the rectangular raw image to a squareimage. The electronic device may generate the square image by adjustinga location of the object to position the object on a square background.For example, when the background is composed of a single color, theelectronic device may recognize that the background is simple.

FIG. 4 illustrates a first image 411 corresponding to a raw image and asecond image 412 corresponding to a converted image. The electronicdevice may generate the second image 412 obtained by reducing the firstimage 411 to a square image. According to an embodiment, the first image411 may correspond to a rectangular image having horizontal and verticallengths that are different from each other. According to an embodiment,the electronic device may recognize a background 411 a and at least oneobject 411 b, which are included in the first image 411. The electronicdevice may recognize the number of at least one object 411 b and thelocation of at least one object. According to an embodiment, theelectronic device may recognize that the recognized background 411 a isa simple background composed of a single color. According to anembodiment, the electronic device may reduce the rectangular background411 a based on the length of the relatively-short side and then mayconvert the rectangular background 411 a into a square background 412 a.According to an embodiment, the electronic device may position the atleast one object on the converted square background 412 a by moving thelocation of the at least one object. For example, the electronic devicemay generate the second image 412 having the square shape by moving thelocation of at least one object with respect to the center of the squarebackground 412 a.

FIG. 4 illustrates a third image 413 corresponding to a raw image and afourth image 414 corresponding to a converted image. The electronicdevice may generate the fourth image 414 obtained by reducing the thirdimage 413 to a square image. According to an embodiment, the third image413 may correspond to a rectangular image having horizontal and verticallengths that are different from each other. According to an embodiment,the electronic device may recognize a background and at least one object(e.g., the number and location of at least one object) included in thethird image 413 in the same and/or similar manner as described above.When the recognized background is a simple background composed of asingle color, the electronic device may convert the background into asquare background by reducing the background. The electronic device mayposition the at least one object on the converted square background byadjusting the location of the at least one object. For example, theelectronic device may generate the fourth image 414 having the squareshape by moving the location of at least one object with respect to thecenter of the square-shaped background.

FIG. 5 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

Referring to FIG. 5 , to reduce image distortion or the sense ofdifference that a user may feel, an electronic device (e.g., theelectronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2 )may perform a preprocessing of converting (or resizing) a rectangularimage into a square image.

Referring to FIG. 5 , the electronic device according to an embodimentmay distinguish a background and an object, which are included in arectangular raw image, and then may generate a square image by enlargingat least part of the background.

Referring to FIG. 5 , the electronic device may obtain a first image 511corresponding to a raw image. For example, the first image 511 maycorrespond to a rectangular image having horizontal and vertical lengthsdifferent from each other. According to an embodiment, the electronicdevice may recognize the background and at least one object that areincluded in the first image 511. For example, the electronic device mayrecognize the background, which is included in the first image 511, andthe number and/or size of at least one object included in the firstimage 511.

In various embodiments, the electronic device may distinguish (orindividually recognize) the background of the first image 511 and atleast one object of the first image 511. The second image 512illustrated in FIG. 5 illustrates an operation in which the electronicdevice distinguishes between the background of the first image 511 andat least one object of the first image 511. In various examples, toeasily distinguish between a background and at least one object, theelectronic device may generate a second image 512 by converting thefirst image 511 into an image having a grayscale (or black and whitecolor). FIG. 5 illustrates that at least one feature (512 a, 512 b, 512c, 512 d, 512 e, 512 f, 512 g) is obtained from the second image 512converted to an image having the grayscale. However, in variousexamples, the electronic device may obtain a feature from the firstimage 511 that is a raw image before the conversion to the grayscale.

According to an embodiment, the electronic device may distinguishbetween the background and at least one object, which are included inthe first image 511, based on the features (512 a, 512 b, 512 c, 512 d,512 e, 512 f, 512 g) of the second image 512. In an embodiment, theelectronic device may individually recognize the background of the imageand at least one object based on the features (512 a, 512 b, 512 c, 512d, 512 e, 512 f, 512 g) of the image (e.g., the first image 511 or thesecond image 512). According to an embodiment, the electronic device mayuse an Oriented FAST and Rotated BRIEF (ORB) method (or algorithm) forobtaining features of an image using edge information of at least oneobject included in the second image 512.

According to an embodiment, the electronic device may calculate thecomplexity of the second image 512 based on at least one feature (512 a,512 b, 512 c, 512 d, 512 e, 512 f, 512 g) extracted (or obtained) by theORB method. According to an embodiment, the electronic device maydistinguish between at least one object and the background based on thecalculated complexity. For example, the electronic device maydistinguish between at least one object and the background by performingan image segment operation based on the calculated complexity. Accordingto an embodiment, the electronic device may recognize the background andat least one object, and then may enlarge at least part of therecognized background.

A third image 513 illustrated in FIG. 5 illustrates that the electronicdevice converts the first image 511, which is a rectangular raw image,into a square image. According to an embodiment, the electronic devicemay enlarge at least part of the recognized background and then maygenerate the third image 513 having a square shape. In an embodiment,the generated third image 513 may be an image in which at least part ofthe background is enlarged, not enlarging the object. According to anembodiment, the electronic device may determine a pixel value (or color)that is the same as or similar to that in a second area 513 b adjacentto a first area 513 a in which the background is to be enlarged. Theelectronic device may fill the first area 513 a, in which the backgroundis to be enlarged, with the determined pixel value. For example, theelectronic device may fill the first area 513 a, in which the backgroundis to be enlarged, with the determined pixel value in an in-paintingscheme. In the same and/or similar manner as described above, otherimages 514, 515, 516, 517, 518, and 519 illustrated in FIG. 5 illustratethat the electronic device converts a rectangular image into a squareimage by enlarging a background.

FIG. 6 is a diagram illustrating an embodiment in which an electronicdevice converts a rectangular image into a square image, according tovarious embodiments.

Referring to FIG. 6 , to reduce image distortion or the sense ofdifference that a user may feel, an electronic device (e.g., theelectronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2 )may perform a preprocessing of converting (or resizing) a rectangularimage into a square image.

Referring to FIG. 6 , the electronic device according to an embodimentmay separate a background and an object from a rectangular raw image,may transform the background into a square background, may compose theobject and the square background, and may generate a square image.

Referring to FIG. 6 , the electronic device may obtain a first image 611corresponding to a raw image. For example, the first image 611 maycorrespond to a rectangular image having horizontal and vertical lengthsdifferent from each other.

According to an embodiment, the electronic device may distinguishbetween a background 611 a and at least one object 611 b in the firstimage 611. In the method (e.g., calculating complexity using featuresextracted in the ORB method) described with reference to FIG. 5 , theelectronic device may distinguish between the background 611 a and theat least one object 611 b in the first image 611. in various methods inaddition to the method described with reference to FIG. 5 , theelectronic device may distinguish between the background 611 a and theat least one object 611 b.

According to an embodiment, the electronic device may separate therecognized at least one object 611 b from the first image 611. Accordingto an embodiment, the electronic device may generate a square image byreducing the first image 611 including the background 611 a other thanthe at least one object 611 b. In an embodiment, the electronic devicemay reduce the first image 611 including the background 611 a excludingat least one object 611 b and then may convert the first image 611 intoa square image. For example, similarly to that described with referenceto FIGS. 3 and 4 , the electronic device may generate a square image byreducing the first image 611 including the background 611 a other thanat least one object 611 b based on a length of the relatively shortside. As another example, similarly to that described with reference toFIG. 5 , the electronic device may generate a square image by enlargingat least part of the background in the first image 611 including thebackground 611 a other than the at least one object 611 b.

According to an embodiment, the electronic device may generate a secondimage 612 having a square shape by composing the at least one object 611b with an image (or an image generated in a square shape) converted intoa square shape. The electronic device may compose the separated at leastone object 611 b with an image (e.g., a square image including only abackground) converted into a square shape. According to an embodiment,the electronic device may generate (or obtain) the second image 612having a square shape from the first image 611 having a rectangularshape, without distortion to the at least one object 611 b. Other images613 and 614 shown in FIG. 6 illustrate that there are a plurality ofobjects 613 a and 613 b. In the same and/or similar manner as describedabove, the electronic device may separate a plurality of objects 613 aand 613 b from the rectangular image 613, may reduce or enlarge abackground, and may convert the rectangular image 613 into a squareimage. The electronic device may compose the plurality of separatedobjects 613 a and 613 b with the background converted into a squareshape.

FIG. 7 is a diagram illustrating an example of an electronic deviceobtaining linear information indicating a characteristic of an image,according to various embodiments.

Referring to FIG. 7 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain linearinformation indicating a characteristic of an image. The obtained linearinformation may be used determine an image conversion method forreducing a change in an object of an image when a rectangular image isconverted into a circular or an edge-rounded image.

According to an embodiment, the electronic device may obtain a firstimage 711 corresponding to a rectangular raw image. Referring to FIG. 7, the first image 711 is illustrated as corresponding to a rectangularimage. However, this is only an example. The first image 711 maycorrespond to a square image.

According to an embodiment, the electronic device may recognize (orobtain, sense, detect) an edge 713 indicating a boundary of at least oneobject included in the first image 711. For example, the edge 713 mayrefer to a boundary where a pixel value is rapidly changed in an image(e.g., the first image 711). According to an embodiment, the electronicdevice may recognize pixel values respectively corresponding to aplurality of pixels included in the first image 711. In variousexamples, the electronic device may convert the first image 711 to thesecond image 712 having black and white color and then may detect theedge 713. The electronic device may calculate the amount of changebetween pixel values of two or more adjacent pixels based on therecognized pixel values. The electronic device may recognize that aportion where the calculated change amount is not less than a thresholdvalue is a boundary where a pixel value is changed rapidly. Theelectronic device may recognize that the portion where the calculatedchange amount is not less than the threshold value is the edge 713.

According to an embodiment, the electronic device may obtain linearinformation indicating the characteristic of the image (e.g., the firstimage 711) from the recognized (or acquired, sensed, detected) edge 713.For example, the linear information indicating the characteristic of theimage may include linear information obtained from an image (e.g., thefirst image 711) or the edge 713 of the image through Hough transform.For example, the linear information indicating the characteristic of theimage may include at least one line information or at least one straightline information, which is detected from an image (e.g., the first image711) or the edge 713 of the image through the Hough transform. Forexample, the electronic device may generate (or obtain) straight lineinformation indicating pixels, which have a straight line relationshipwith each other, from among a plurality of pixels (or a plurality ofpixels of the edge 713) included in the image through the Houghtransform.

Referring to FIG. 7 , the linear information generated (or obtained)from the edge 713 is shown. According to an embodiment, the electronicdevice may generate (or obtain) linear information associated with atleast one straight line 714 from the edge 713. In an embodiment, thelinear information associated with the at least one straight line 714may indicate the characteristic of the first image 711 (or the secondimage 712 having black and white color). For example, the linearinformation associated with the at least one straight line 714 mayindicate a morphological characteristic of at least one object (or thebackground of the first image 711) included in the first image 711. Invarious embodiments, the above-described linear information maycorrespond to a Hough line generated from an image through the Houghtransform.

According to an embodiment, when converting a rectangular image (e.g.,the first image 711) into a circular or edge-rounded image, theelectronic device may determine an image conversion method for reducinga change (or distortion) in the object of the image based on thegenerated (or obtained) linear information.

FIG. 8 illustrates an example image conversion method in which anelectronic device converts a shape of an image from a rectangular shapeto a circular shape or an edge-rounded shape, according to variousembodiments.

Referring to FIG. 8 , a first image 811 obtained by an electronic device(e.g., the electronic device 101 of FIG. 1 or the electronic device 201of FIG. 2 ) is shown. For example, the first image 811 may have arectangular shape. In various embodiments, the first image 811 may haveone of a rectangular shape or a square shape. Hereinafter, it isillustrated that the first image 811 has a square shape.

According to an embodiment, the electronic device may determine (orselect) an image conversion method for converting the shape of the firstimage 811 into a circular or edge-rounded shape. In an embodiment, theelectronic device may manage an equation for image conversion as adatabase. For example, the electronic device may store the equation forimage conversion in a memory (e.g., the memory 130 of FIG. 1 or thememory 220 of FIG. 2 ). For example, the electronic device may store thedatabase in the memory or an external memory. In various embodiments,the number of databases or the size of a database is not limitedthereto. For example, the image conversion method may include a lensdistortion correction (LDC) barrel distortion method, a superellipsemethod, or a squircle method. In addition to the above-described method,the electronic device may warp (or convert) a rectangular image into acircular or edge-rounded image using various equations for warping animage.

According to an embodiment, the electronic device may determine theequation for image conversion, in which the change of the object of theimage is reduced when the first image 811 is converted into a circularimage, in a databases 821 (e.g., crop, pincushion, barrel, stretch,lame, FGS, elliptical, horizon(s), vertical(s), squelched) including atleast one equation for image conversion. According to an embodiment, theelectronic device may determine the equation for image conversion, inwhich the distortion of the object of the image in the database 821 isreduced, based on linear information (e.g., Hough line) indicating thecharacteristic of the first image 811. An example in which an electronicdevice determines an equation for image conversion will be describedwith reference to FIG. 9 .

FIG. 9 illustrates an example of an electronic device determining animage conversion method by obtaining linear information from an image,according to various embodiments.

Referring to FIG. 9 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain animage conversion method (or an equation for image conversion) based onlinear information indicating a characteristic of an image. According toan embodiment, the electronic device may convert (or warp) a rectangularimage into a circular or edge-rounded image using the image conversionmethod determined depending on the characteristic of an individualimage, not applying a consistent image conversion method to differentimages.

Hereinafter, it is described that the electronic device converts (orwarps) a rectangular image into a circular image. However, in variousembodiments, the electronic device may convert a rectangular image intoan edge-rounded shape.

According to an embodiment, the electronic device may obtain a firstimage 911. The first image 911 is illustrated as corresponding to arectangular image. However, this is only an example. The first image 911may correspond to a square image. For example, when the first image 911is a rectangular image, the electronic device may perform apreprocessing of converting the rectangular image into a square image.

According to an embodiment, the electronic device may obtain linearinformation 913 indicating the characteristic of the first image 911from the first image 911. According to an embodiment, the linearinformation 913 may include at least one line information or at leastone straight line information, which is detected from the first image911 or an edge obtained from the first image 911, through Houghtransform. For example, the linear information 913 may correspond to aHough line generated through the Hough transform from the first image911.

According to an embodiment, when converting the first image 911 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information 913. According to anembodiment, the electronic device may recognize the number of straightlines in a first orientation (e.g., x-axis direction) and the number ofstraight lines in a second orientation (e.g., y-axis direction), basedon the obtained linear information 913 (e.g., Hough line). For example,the electronic device may recognize that a difference between the numberof straight lines in the first orientation and the number of straightlines in the second orientation is not relatively large. According to anembodiment, the electronic device may determine that the imageconversion method of the first image 911 is an elliptical conversionmethod, based on the recognized number of straight lines in the firstorientation and the recognized number of straight lines in the secondorientation. According to an embodiment, when a difference between therecognized number of straight lines in the first orientation and therecognized number of straight lines in the second orientation is lessthan a specified value, the electronic device may determine that theimage conversion method of the first image 911 is an ellipticalconversion method, and then may reduce the distortion of an object of animage that occurs when the first image 911 is converted into a circularimage.

According to an embodiment, the electronic device may obtain a secondimage 921. The second image 921 is illustrated as corresponding to arectangular image. However, this is only an example. The second image921 may correspond to a square image. For example, when the second image921 is a rectangular image, the electronic device may perform apreprocessing of converting the rectangular image into a square image.

According to an embodiment, the electronic device may obtain linearinformation 923 indicating the characteristic of the second image 921from the second image 921. According to an embodiment, the linearinformation 923 may include at least one line information or at leastone straight line information, which is detected from the second image921 or an edge obtained from the second image 921, through Houghtransform. For example, the linear information 923 may correspond to aHough line generated through the Hough transform from the second image921.

According to an embodiment, when converting the second image 921 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information 923. According to anembodiment, the electronic device may recognize the number of straightlines in a first orientation (e.g., x-axis direction) and the number ofstraight lines in a second orientation (e.g., y-axis direction), basedon the obtained linear information 923 (e.g., Hough line). For example,the electronic device may recognize only a straight line in the firstorientation or may recognize that the number of straight lines in thefirst orientation is greater than the number of straight lines in thesecond orientation and a difference between the number of straight linesin the first orientation and the number of straight lines in the secondorientation is not less than a specified value. According to anembodiment, the electronic device may determine that the imageconversion method of the second image 921 is a squelched horizonconversion method, based on the recognized number of straight lines inthe first orientation and the recognized number of straight lines in thesecond orientation. According to an embodiment, when a differencebetween the recognized number of straight lines in the first orientationand the recognized number of straight lines in the second orientation isnot less than the specified value, and the number of straight lines inthe first orientation is greater than the number of straight lines inthe second orientation, the electronic device may determine that theimage conversion method of the second image 921 is a squelched horizonconversion method, and then may reduce the distortion of an object of animage that occurs when the second image 921 is converted into a circularimage.

According to an embodiment, the electronic device may obtain a thirdimage 931. The third image 931 is illustrated as corresponding to arectangular image. However, this is only an example. The third image 931may correspond to a square image. For example, when the third image 931is a rectangular image, the electronic device may perform apreprocessing of converting the rectangular image into a square image.

According to an embodiment, the electronic device may obtain linearinformation 933 indicating the characteristic of the third image 931from the third image 931. According to an embodiment, the linearinformation 933 may include at least one line information or at leastone straight line information, which is detected from the third image931 or an edge obtained from the third image 931, through Houghtransform. For example, the linear information 933 may correspond to aHough line generated through the Hough transform from the third image931.

According to an embodiment, when converting the third image 931 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information 933. According to anembodiment, the electronic device may recognize the number of straightlines in a first orientation (e.g., x-axis direction) and the number ofstraight lines in a second orientation (e.g., y-axis direction), basedon the obtained linear information 933 (e.g., Hough line). For example,the electronic device may recognize only a straight line in the secondorientation or may recognize that the number of straight lines in thesecond orientation is greater than the number of straight lines in thefirst orientation and a difference between the number of straight linesin the first orientation and the number of straight lines in the secondorientation is not less than a specified value. According to anembodiment, the electronic device may determine that the imageconversion method of the third image 931 is a squelched verticalconversion method, based on the recognized number of straight lines inthe first orientation and the recognized number of straight lines in thesecond orientation. According to an embodiment, when a differencebetween the recognized number of straight lines in the first orientationand the recognized number of straight lines in the second orientation isnot less than the specified value, and the number of straight lines inthe second orientation is greater than the number of straight lines inthe first orientation, the electronic device may determine that theimage conversion method of the third image 931 is a squelched verticalconversion method, and then may reduce the distortion of an object of animage that occurs when the third image 931 is converted into a circularimage.

In various embodiments, the electronic device may obtain linearinformation (e.g., Hough line) from an image and may determine (orselect) an image conversion method for reducing the change of an objectof an image during the conversion to a circular image, based on theorientation of a line (or a straight line) included in the obtainedlinear information. In an embodiment, when the linear informationincludes a relatively large number of Hough lines corresponding to thefirst orientation (e.g., x-axis direction), the electronic device maydetermine an image conversion method for reducing the change in thefirst orientation. In another example, when the linear informationincludes a relatively large number of Hough lines corresponding to thesecond orientation (e.g., y-axis direction), the electronic device maydetermine an image conversion method for reducing the change in thesecond orientation. In another example, when the linear informationincludes both Hough lines corresponding to the first orientation andHough lines corresponding to the second orientation, or the differencebetween the number of Hough lines corresponding to the first orientationand the number of Hough lines corresponding to the second orientation isless than a specified value, the electronic device may determine animage conversion method in which a change in the first orientation issimilar to a change in the second orientation. The linear information(913, 933) shown in FIG. 9 is only an example for convenience ofdescription. The orientation and number (e.g., the number of linesincluded in linear information) of linear information may not beconstrued as being limited to those shown in FIG. 9 .

According to various embodiments, the electronic device may determine animage conversion method for the first image 911, the second image 921,and the third image 931, which are described above, using a machinelearning model. According to an embodiment, the electronic device maylearn various images using the machine learning model. According to anembodiment, the electronic device may learn characteristics of an imageusing the machine learning model and may determine an image conversionmethod for reducing the distortion of the object of the image duringimage conversion (or warping) depending on the learned result.

According to an embodiment, the electronic device may learn an imageconversion method for reducing the distortion of the object of the imageaccording to linear information (e.g., Hough line) of an image using themachine learning model. According to an embodiment, the electronicdevice may determine an image conversion method for reducing thedistortion of the object of the image during image conversion (orwarping) depending on the learned result using the machine learningmodel. For example, the electronic device may convert the first image911 to a circular image in an elliptical conversion method determinedusing the machine learning model. For example, the electronic device mayconvert the second image 921 to a circular image in a squelched horizonconversion method determined using the machine learning model. Forexample, the electronic device may convert the third image 931 to acircular image in a squelched vertical conversion method determinedusing the machine learning model.

FIG. 10 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments.

Referring to FIG. 10 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain afirst image 1011. For example, the first image 1011 may be a raw image.The first image 1011 is illustrated as corresponding to a rectangularimage. However, in various embodiments, the first image 1011 maycorrespond to a square image. For example, when the first image 1011 isa rectangular image, the electronic device may perform a preprocessingof converting the rectangular image into a square image.

According to an embodiment, the electronic device may determine an imageconversion method for converting the first image 1011 having aquadrangle (e.g., rectangle or square) into an image having a circularor edge-rounded shape. Hereinafter, it is described that the electronicdevice converts the first image 1011 having a rectangle into the firstimage 1011 having a circle.

According to an embodiment, the electronic device may obtain linearinformation indicating the characteristic of the first image 1011.According to an embodiment, the linear information may include at leastone line information or at least one straight line information, which isdetected from the first image 1011 or an edge obtained from the firstimage 1011, through Hough transform. For example, the linear informationmay correspond to a Hough line generated through the Hough transformfrom the first image 1011.

According to an embodiment, the electronic device may include a databaseincluding at least one equation for image conversion. For example, theelectronic device may store the database including at least one equationfor image conversion in a memory (e.g., the memory 130 of FIG. 1 and thememory 220 of FIG. 2 ). Referring to FIG. 10 , an example 1021 in whichthe electronic device converts (or warps) the first image 1011 usingvarious image conversion methods stored in a database is illustrated.According to an embodiment, when converting the first image 1011 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information. According to anembodiment, the electronic device may convert the first image 1011 intoa second image 1031 or a third image 1032 in an image conversion methoddetermined based on the linear information of the first image 1011.

According to an embodiment, the electronic device may display the secondimage 1031 or the third image 1032 on a display (e.g., the displaymodule 160 of FIG. 1 or the display 210 of FIG. 2 ). According to anembodiment, the display area of a display may have a circular oredge-rounded shape. According to an embodiment, the electronic devicemay provide the second image 1031 or the third image 1032, which hasrelatively little visual distortion, to a user watching the displayhaving a circular display area.

FIG. 11 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments.

Referring to FIG. 11 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain afirst image 1111. For example, the first image 1111 may be a raw image.The first image 1111 is illustrated as corresponding to a rectangularimage. However, in various embodiments, the first image 1111 maycorrespond to a square image. For example, when the first image 1111 isa rectangular image, the electronic device may perform a preprocessingof converting the rectangular image into a square image.

According to an embodiment, the electronic device may determine an imageconversion method for converting the first image 1111 having aquadrangle (e.g., rectangle or square) into an image having a circularor edge-rounded shape. Hereinafter, it is described that the electronicdevice converts the first image 1111 having a rectangle into the firstimage 1111 having a circle.

According to an embodiment, the electronic device may obtain linearinformation indicating the characteristic of the first image 1111.According to an embodiment, the linear information may include at leastone line information or at least one straight line information, which isdetected from the first image 1111 or an edge obtained from the firstimage 1111, through Hough transform. For example, the linear informationmay correspond to a Hough line generated through the Hough transformfrom the first image 1111.

According to an embodiment, the electronic device may include a databaseincluding at least one equation for image conversion. For example, theelectronic device may store the database including at least one equationfor image conversion in a memory (e.g., the memory 130 of FIG. 1 and thememory 220 of FIG. 2 ). Referring to FIG. 11 , an example 1121 in whichthe electronic device converts (or warps) the first image 1111 usingvarious image conversion methods stored in a database is illustrated.According to an embodiment, when converting the first image 1111 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information. According to anembodiment, the electronic device may convert the first image 1111 intoa second image 1131 in an image conversion method determined based onthe linear information of the first image 1111.

According to an embodiment, the electronic device may display the secondimage 1131 on a display (e.g., the display module 160 of FIG. 1 or thedisplay 210 of FIG. 2 ). According to an embodiment, the display area ofa display may have a circular or edge-rounded shape. According to anembodiment, the electronic device may provide the second image 1131,which has relatively little visual distortion, to a user watching thedisplay having a circular display area.

FIG. 12 illustrates an example of an electronic device converting arectangular image into a circular image using an image conversion methoddetermined based on linear information, according to variousembodiments.

Referring to FIG. 12 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain afirst image 1211. For example, the first image 1211 may be a raw image.The first image 1211 is illustrated as corresponding to a rectangularimage. However, in various embodiments, the first image 1211 maycorrespond to a square image. For example, when the first image 1211 isa rectangular image, the electronic device may perform a preprocessingof converting the rectangular image into a square image.

According to an embodiment, the electronic device may determine an imageconversion method for converting the first image 1211 having aquadrangle (e.g., rectangle or square) into an image having a circularor edge-rounded shape. Hereinafter, it is described that the electronicdevice converts the first image 1211 having a rectangle into the firstimage 1211 having a circle.

According to an embodiment, the electronic device may obtain linearinformation indicating the characteristic of the first image 1211.According to an embodiment, the linear information may include at leastone line information or at least one straight line information, which isdetected from the first image 1211 or an edge obtained from the firstimage 1211, through Hough transform. For example, the linear informationmay correspond to a Hough line generated through the Hough transformfrom the first image 1211.

According to an embodiment, the electronic device may include a databaseincluding at least one equation for image conversion. For example, theelectronic device may store the database including at least one equationfor image conversion in a memory (e.g., the memory 130 of FIG. 1 and thememory 220 of FIG. 2 ). Referring to FIG. 12 , an example 1221 in whichthe electronic device converts (or warps) the first image 1211 usingvarious image conversion methods stored in a database is illustrated.According to an embodiment, when converting the first image 1211 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the object of theimage based on the obtained linear information. According to anembodiment, the electronic device may convert the first image 1211 intoa second image 1231 in an image conversion method determined based onthe linear information of the first image 1211.

According to an embodiment, the electronic device may display the secondimage 1231 on a display (e.g., the display module 160 of FIG. 1 or thedisplay 210 of FIG. 2 ). According to an embodiment, the display area ofa display may have a circular or edge-rounded shape. According to anembodiment, the electronic device may provide the second image 1231,which has relatively little visual distortion, to a user watching thedisplay having a circular display area.

FIG. 13 illustrates an example of an electronic device converting arectangular image into a circular image by separating a background andan object, according to various embodiments.

Referring to FIG. 13 , an electronic device (e.g., the electronic device101 of FIG. 1 or the electronic device 201 of FIG. 2 ) may obtain afirst image 1311. For example, the first image 1311 may be a raw image.The first image 1311 is illustrated as corresponding to a rectangularimage. However, in various embodiments, the first image 1311 maycorrespond to a square image. For example, when the first image 1311 isa rectangular image, the electronic device may perform a preprocessingof converting the rectangular image into a square image.

According to an embodiment, the electronic device may separate (ordistinguish) an object 1311 a and a background 1311 b from the firstimage 1311. According to an embodiment, the electronic device mayindividually recognize the object 1311 a and the background 1311 b fromthe first image 1311. In an embodiment, the electronic device mayrecognize the object 1311 a and the background 1311 b, which areincluded in the first image 1311. The electronic device may generate asecond image 1312 that is excluded by separating the recognized object1311 a from the first image 1311. The second image 1312 may include thebackground 1311 b.

According to an embodiment, the electronic device may obtain linearinformation indicating the characteristic of the second image 1312 fromthe second image 1312 excluding the object 1311 a. For example, theelectronic device may obtain linear information indicating thecharacteristic of the background 1311 b. According to an embodiment, thelinear information may include at least one line information or at leastone straight line information, which is detected from the second image1312 or an edge obtained from the second image 1312, through Houghtransform. For example, the linear information may correspond to a Houghline generated through the Hough transform from the second image 1312.

According to an embodiment, when converting the second image 1312 into acircular image, the electronic device may determine the image conversionmethod for reducing the distortion (or change) of the background 1311 bof the image based on the obtained linear information. It is describedwith reference to the drawings that an electronic device determines animage conversion method for reducing distortion (or change) based onlinear information, and thus a redundant description will be omitted.According to an embodiment, the electronic device may convert (or warp)the second image 1312 into a third image 1313 having a circular shape inthe determined image conversion method.

According to an embodiment, the electronic device may compose the object1311 a and the third image 1313. According to an embodiment, theelectronic device may generate a fourth image 1314 by composing theobject 1311 a with the third image 1313.

According to an embodiment, the electronic device may display thegenerated fourth image 1314 on a display (e.g., the display module 160of FIG. 1 or the display 210 of FIG. 2 ). According to an embodiment,the display area of a display may have a circular or edge-rounded shape.According to an embodiment, the object 1311 a may not be converted (orwarped) by the determined image conversion method, and the fourth image1314 may correspond to an image converted (or warped) by an imageconversion method that determines only the background 1311 b. Accordingto an embodiment, the electronic device may provide the fourth image1314, which has relatively little visual distortion, to a user watchingthe display having a circular display area.

FIG. 14 illustrates an example operation of converting a rectangularimage into a circular image using an electronic device and an externalelectronic device, according to various embodiments.

In various embodiments, an operation of converting a rectangular imageinto a circular image based on the characteristic of an image by anelectronic device (e.g., the electronic device 101 of FIG. 1 or theelectronic device 201 of FIG. 2 ) may be performed using two or moreelectronic devices. Referring to FIG. 14 , a first system 1410, a secondsystem 1420, a third system 1430, and a fourth system 1440 areillustrated.

Referring to the first system 1410, an electronic device 1411 and anexternal electronic device 1412 are illustrated. For example, theelectronic device 1411 may be a wearable device (e.g., a smart watch)capable of being worn on a user's body. For example, the externalelectronic device 1412 may be a portable communication device (e.g., asmartphone).

According to an embodiment, the external electronic device 1412 mayinclude a database. In an embodiment, the database may include at leastone equation for image conversion. In an embodiment, the database mayinclude at least one image. For example, the database may include animage of a quadrangle (e.g., rectangle or square) to be transformed.

According to an embodiment, the external electronic device 1412 mayinclude a processor including various processing circuitry that convertsa rectangular image into a circular (or edge-rounded) image. Variousembodiments in which a processor of the external electronic device 1412transforms (or warps) the shape of an image may be the same orsubstantially the same as those described with reference to thedrawings. Hereinafter, operations described as being performed by theexternal electronic device 1412 may be referred to as being performed bythe processor of the external electronic device 1412.

According to an embodiment, the external electronic device 1412 mayobtain a rectangular image, of which the shape is to be transformed,from a database. According to an embodiment, the external electronicdevice 1412 may obtain linear information indicating the characteristicof the rectangular image from the obtained rectangular image. Accordingto an embodiment, the linear information may include at least one lineinformation or at least one straight line information, which is detectedfrom an image or an edge obtained from the image, through Houghtransform. For example, the linear information may correspond to a Houghline generated through the Hough transform from the image. In variousembodiments, the external electronic device 1412 may perform apreprocessing of converting (or resizing) a rectangular image into asquare image and then may obtain linear information from the convertedsquare image.

According to an embodiment, when converting a rectangular image into acircular image, the external electronic device 1412 may determine theimage conversion method, which allows the distortion (or change) of theobject of the image to be reduced, based on the obtained linearinformation. The external electronic device 1412 may determine (orselect) at least one equation (or image conversion method) for imageconversion, which allows the distortion (or change) of an object of animage to be reduced, from a database. According to an embodiment, theexternal electronic device 1412 may convert (or warp) a rectangularimage into a circular image in an image conversion method determinedbased on linear information of the image. The external electronic device1412 may provide a circular image to the electronic device 1411.

According to an embodiment, the electronic device 1411 may include acircular display (e.g., the display module 160 of FIG. 1 or the display210 of FIG. 2 ). The electronic device 1411 may display the circularimage received from the external electronic device 1412 on the display.

Referring to the second system 1420, an electronic device 1421 and anexternal electronic device 1422 are illustrated. For example, theelectronic device 1421 may be a wearable device (e.g., a smart watch)capable of being worn on a user's body. For example, the externalelectronic device 1422 may be a portable communication device (e.g., asmartphone).

According to an embodiment, the electronic device 1421 may include adatabase. In an embodiment, the database may include at least oneequation for image conversion. In an embodiment, the database mayinclude at least one image. For example, the database may include animage of a quadrangle (e.g., rectangle or square) to be transformed.

According to an embodiment, the external electronic device 1422 mayinclude a processor including various processing circuitry that convertsa rectangular image into a circular (or edge-rounded) image.Hereinafter, operations described as being performed by the externalelectronic device 1422 may be referred to as being performed by theprocessor of the external electronic device 1422.

According to an embodiment, the external electronic device 1422 mayobtain a rectangular image, of which the shape is to be transformed,from the database included in the electronic device 1421. According toan embodiment, the external electronic device 1422 may obtain linearinformation indicating the characteristic of the rectangular image fromthe rectangular image. According to an embodiment, the linearinformation may include at least one line information or at least onestraight line information, which is detected from an image or an edgeobtained from the image, through Hough transform. For example, thelinear information may correspond to a Hough line generated through theHough transform from the image. In various embodiments, the externalelectronic device 1422 may perform a preprocessing of converting (orresizing) a rectangular image into a square image and then may obtainlinear information from the converted square image.

According to an embodiment, when converting a rectangular image into acircular image, the external electronic device 1422 may determine theimage conversion method, which allows the distortion (or change) of theobject of the image to be reduced, based on the obtained linearinformation. The external electronic device 1422 may determine (orselect) at least one equation (or image conversion method) for imageconversion, which allows the distortion (or change) of an object of animage to be reduced, from a database of the electronic device 1421.According to an embodiment, the external electronic device 1422 mayconvert (or warp) a rectangular image into a circular image in an imageconversion method determined based on linear information of the image.The external electronic device 1422 may provide a circular image to theelectronic device 1421. The electronic device 1421 may store thereceived circular image in the database.

According to an embodiment, the electronic device 1421 may include acircular display (e.g., the display module 160 of FIG. 1 or the display210 of FIG. 2 ). The electronic device 1421 may obtain the circularimage, which is received from the external electronic device 1422, fromthe database. The electronic device 1421 may display the obtainedcircular image on the display.

Referring to the third system 1430, an electronic device 1431, a firstexternal electronic device 1432, and a second external electronic device1433 are illustrated. For example, the electronic device 1431 may be awearable device (e.g., a smart watch) capable of being worn on a user'sbody. For example, the first external electronic device 1432 may be aportable communication device (e.g., a smartphone). For example, thesecond external electronic device 1433 may be an external server.

According to an embodiment, the second external electronic device 1433may include a processor including various processing circuitry thatconverts a rectangular image into a circular (or edge-rounded) image.Hereinafter, operations described as being performed by the secondexternal electronic device 1433 may be referred to as being performed bya processor of the second external electronic device 1433.

According to an embodiment, the electronic device 1431 may include adatabase. In an embodiment, the database may include at least oneequation for image conversion. In an embodiment, the database mayinclude at least one image. For example, the database may include animage of a quadrangle (e.g., rectangle or square) to be transformed.

According to an embodiment, the first external electronic device 1432may obtain a rectangular image, of which the shape is to be transformed,from the database included in the electronic device 1431. According toan embodiment, the first external electronic device 1432 may include arelay for transmitting and receiving various pieces of data. The firstexternal electronic device 1432 may provide the obtained rectangularimage to the second external electronic device 1433. According to anembodiment, the second external electronic device 1433 may obtain linearinformation indicating the characteristic of the rectangular image fromthe rectangular image. According to an embodiment, the linearinformation may include at least one line information or at least onestraight line information, which is detected from an image or an edgeobtained from the image, through Hough transform. For example, thelinear information may correspond to a Hough line generated through theHough transform from the image. In various embodiments, the secondexternal electronic device 1433 may perform a preprocessing ofconverting (or resizing) a rectangular image into a square image andthen may obtain linear information from the converted square image.

According to an embodiment, when converting a rectangular image into acircular image, the second external electronic device 1433 may determinethe image conversion method, which allows the distortion (or change) ofthe object of the image to be reduced, based on the obtained linearinformation. The second external electronic device 1433 may determine(or select) at least one equation (or image conversion method) for imageconversion, which allows the distortion (or change) of an object of animage to be reduced, from a database of the electronic device 1431. Forexample, the second external electronic device 1433 may receive at leastone equation for image conversion determined based on linear informationof the image from the electronic device 1431 through the first externalelectronic device 1432.

According to an embodiment, the second external electronic device 1433may convert (or warp) a rectangular image into a circular image in animage conversion method determined based on linear information of theimage. The second external electronic device 1433 may provide a circularimage to the first electronic device 1432. The first external electronicdevice may provide the received circular image to the electronic device1431. The electronic device 1431 may store the received circular imagein the database.

According to an embodiment, the electronic device 1431 may include acircular display (e.g., the display module 160 of FIG. 1 or the display210 of FIG. 2 ). The electronic device 1431 may obtain the circularimage, which is received from the first external electronic device 1432,from the database. The electronic device 1431 may display the obtainedcircular image on the display.

Referring to the fourth system 1440, an electronic device 1441, a firstexternal electronic device 1442, and a second external electronic device1443 are illustrated. For example, the electronic device 1441 may be awearable device (e.g., a smart watch) capable of being worn on a user'sbody. For example, the first external electronic device 1442 may be aportable communication device (e.g., a smartphone). For example, thesecond external electronic device 1443 may be an external server.

According to an embodiment, the electronic device 1441 may directlycommunicate with the second external electronic device 1443 withoutgoing through the first external electronic device 1442. According to anembodiment, the electronic device 1441 may directly transmit/receivevarious pieces of data (e.g., images) to and from the second externalelectronic device 1443 without going through the first externalelectronic device 1442.

According to an embodiment, the second external electronic device 1443may include a processor that converts a rectangular image into acircular (or edge-rounded) image. Hereinafter, operations described asbeing performed by the second external electronic device 1443 may bereferred to as being performed by the processor of the second externalelectronic device 1443.

According to an embodiment, the electronic device 1441 may include adatabase. In an embodiment, the database may include at least oneequation for image conversion. In an embodiment, the database mayinclude at least one image. For example, the database may include animage of a quadrangle (e.g., rectangle or square) to be transformed.

According to an embodiment, the second external electronic device 1443may obtain a rectangular image, of which the shape is to be transformed,from a database included in the electronic device 1441. According to anembodiment, the second external electronic device 1443 may obtain linearinformation indicating the characteristic of the rectangular image fromthe rectangular image. According to an embodiment, the linearinformation may include at least one line information or at least onestraight line information, which is detected from an image or an edgeobtained from the image, through Hough transform. For example, thelinear information may correspond to a Hough line generated through theHough transform from the image. In various embodiments, the secondexternal electronic device 1443 may perform a preprocessing ofconverting (or resizing) a rectangular image into a square image andthen may obtain linear information from the converted square image.

According to an embodiment, when converting a rectangular image into acircular image, the second external electronic device 1443 may determinethe image conversion method, which allows the distortion (or change) ofthe object of the image to be reduced, based on the obtained linearinformation. The second external electronic device 1443 may determine(or select) at least one equation (or image conversion method) for imageconversion, which allows the distortion (or change) of an object of animage to be reduced, from a database of the electronic device 1441.According to an embodiment, the second external electronic device 1443may convert (or warp) a rectangular image into a circular image in animage conversion method determined based on linear information of theimage. The second external electronic device 1443 may provide a circularimage to the electronic device 1441. The electronic device 1441 maystore the received circular image in the database.

According to an embodiment, the electronic device 1441 may include acircular display (e.g., the display module 160 of FIG. 1 or the display210 of FIG. 2 ). The electronic device 1441 may obtain the circularimage, which is received from the second external electronic device1443, from the database. The electronic device 1441 may display theobtained circular image on the display.

According to an embodiment of the disclosure, an electronic device(e.g., the electronic device 101 of FIG. 1 , the electronic device 201of FIG. 2 , the electronic device (1411, 1421, 1431, 1441) of FIG. 14 ,the first external electronic device (1412, 1422), or the secondexternal electronic device (1433, 1443)) may include: a display (e.g.,the display module 160 of FIG. 1 or the display 210 of FIG. 2 ), amemory (e.g., the memory 130 of FIG. 1 and the memory 220 of FIG. 2 ),and a processor (e.g., the processor 120 of FIG. 1 , the processor 230of FIG. 2 , or the processor of FIG. 14 ) operatively connected to thedisplay and the memory. According to an embodiment, the memory may storeinstructions that, when executed, cause the processor to: obtain a firstimage of a first shape, obtain linear information indicating amorphological characteristic of an object in the first image of thefirst shape, determine a conversion method for converting the firstimage of the first shape into an image of a second shape based on theobtained linear information, convert the first image of the first shapeinto a second image of the second shape based on the determinedconversion method, and display the converted second image of the secondshape on the display.

According to an embodiment, the first shape may correspond to arectangular shape. The instructions, when executed, may cause theprocessor to convert the first image corresponding to the rectangularshape into a third image corresponding to a third shape and to obtainthe linear information from the third image.

According to an embodiment, the instructions, when executed, may causethe processor to: individually recognize a background and an object,which are included in the first image corresponding to the rectangularshape, convert the recognized background other than the recognizedobject into a background of the third shape by reducing or enlarging therecognized background other than the recognized object, and generate thethird image by composing the recognized object with the convertedbackground of the third shape. The third shape may correspond to asquare shape.

According to an embodiment, the instructions, when executed, may causethe processor to: obtain a feature of the first image corresponding tothe first shape and individually recognize the background and the objectbased on the obtained feature.

According to an embodiment, the instructions, when executed, may causethe processor to: obtain the linear information through Hough transform.The linear information may include information about a Hough line.

According to an embodiment, the instructions, when executed, may causethe processor to: determine the conversion method, which reduces achange between the first image of the first shape and the second imageof the second shape based on the obtained linear information.

According to an embodiment, the instructions, when executed, may causethe processor to: individually recognize a background and an object,which are included in the first image of the first shape, separate therecognized object from the first image of the first shape, and obtainthe linear information indicating a morphological characteristic of therecognized background.

According to an embodiment, the instructions, when executed, may causethe processor to: determine the conversion method based on the linearinformation indicating the morphological characteristic of therecognized background and convert an image excluding the separatedobject, into an image of the second shape based on the determinedconversion method.

According to an embodiment, the instructions, when executed, may causethe processor to: generate the second image of the second shape bycomposing the separated object with the converted image of the secondshape.

According to an embodiment, the instructions, when executed, may causethe processor to: individually recognize a background and an object,which are included in the first image of the first shape, generate athird image obtained by separating the recognized object from the firstimage of the first shape, convert the generated third image into afourth image of the second shape by obtaining the linear informationfrom the generated third image, and to display a fifth image of thesecond shape obtained by composing the recognized object with theconverted fourth image, on the display.

According to an embodiment, the memory may be configured to store adatabase including at least one equation for converting an image of thefirst shape into an image of the second shape.

According to an embodiment, the instructions, when executed, may causethe processor to learn a morphological characteristic of an object inthe first image using a machine learning model and determine theconversion method based on the learned result.

According to an embodiment, the instructions, when executed, may causethe processor to obtain the linear information from at least oneexternal electronic device.

According to an embodiment, the display may include a circular displayarea. The instructions, when executed, may cause the processor todisplay the second image of the second shape in the circular displayarea.

According to an embodiment, the instructions, when executed, may causethe processor to: convert the first image of the first shape into a grayscale, recognize an edge indicating a boundary of at least one objectincluded in the first image, from the first image converted into thegrayscale, and obtain the linear information corresponding to at leastone straight line based on the recognized edge.

FIG. 15 is a flowchart illustrating an example method of operating aprocessor of an electronic device, according to various embodiments.

According to an embodiment, in operation 1510, an electronic device(e.g., the electronic device 101 of FIG. 1 , the electronic device 201of FIG. 2 , the electronic device (1411, 1421, 1431, 1441) of FIG. 14 ,the first external electronic device (1412, 1422), or the secondexternal electronic device (1433, 1443)) may obtain a first image of afirst shape. For example, the first image of the first shape may have arectangular shape or a square shape. For example, the electronic devicemay obtain the first rectangular image from a database (or a memory(e.g., the memory 130 of FIG. 1 or the memory 220 of FIG. 2 )) includingat least one image. Hereinafter, operations described as being performedby the electronic device may be understood as being performed by aprocessor (e.g., the processor 120 of FIG. 1 , the processor 230 of FIG.2 , or the processor of FIG. 14 ).

According to an embodiment, in operation 1520, the electronic device mayobtain linear information indicating the morphological characteristic ofan object in the first image of the first shape. In various examples,the linear information may indicate the morphological characteristic ofa background in the first image of the first shape (e.g., rectangle).According to an embodiment, the linear information may include at leastone line information or at least one straight line information, which isdetected from the first image (or an edge obtained from the first image)of the first shape (e.g., rectangle), through Hough transform. Forexample, the linear information may correspond to a Hough line generatedthrough the Hough transform from the first rectangular image.

According to an embodiment, in operation 1530, the electronic device maydetermine a conversion method for converting the first image of thefirst shape into an image of the second shape based on the obtainedlinear information. In an embodiment, when converting (or warping) thefirst image of the first shape (e.g., rectangle) to an image of thesecond shape (e.g., circle), the electronic device may determine animage conversion method that allows the distortion (or change) of theobject of the image to be reduced. In an embodiment, the electronicdevice may store various equations for transforming (or warping) animage. The electronic device may determine an equation, which is used toreduce the distortion of the object of the image when the first image isconverted, from among various equations based on the linear informationof the first image.

According to an embodiment, in operation 1540, the electronic device mayconvert the first image of the first shape (e.g., rectangle) into thesecond image of the second shape based on the determined conversionmethod.

According to an embodiment, in operation 1550, the electronic device maydisplay the second image of the second shape on a display (e.g., thedisplay module 160 of FIG. 1 or the display 210 of FIG. 2 ). Accordingto an embodiment, the display area of a display may have a circular oredge-rounded shape. According to an embodiment, the electronic devicemay provide the second image of the second shape (e.g., circle) havingreduced visual distortion to a user watching a display having a circulardisplay area. The user of the electronic device may perceive an imagewith reduced distortion, and thus the electronic device may provide theuser with an improved user experience.

FIG. 16 is a flowchart illustrating an example operating method of anelectronic device, according to various embodiments.

According to an embodiment, in operation 1610, an electronic device(e.g., the electronic device 101 of FIG. 1 , the electronic device 201of FIG. 2 , the electronic device (1411, 1421, 1431, 1441) of FIG. 14 ,the first external electronic device (1412, 1422), or the secondexternal electronic device (1433, 1443)) may obtain a first image of afirst shape. For example, a first image of a first shape may correspondto a first rectangular image. Hereinafter, operations described as beingperformed by the electronic device may be understood as being performedby a processor (e.g., the processor 120 of FIG. 1 , the processor 230 ofFIG. 2 , or the processor of FIG. 14 ).

According to an embodiment, in operation 1620, the electronic device mayconvert the first image of the first shape into a second image of asecond shape. According to an embodiment, the electronic device maygenerate the second image of the second shape (e.g., a square shape)through a resizing operation of reducing (or cropping) a length of aside (or edge) of the first image of the first shape (e.g., arectangular shape). According to various embodiments, the electronicdevice may distinguish between a background and an object, which areincluded in the first image of the first shape (e.g., rectangle), mayperform a resizing operation of reducing the length of a side (or edge)of an image including the background excluding the object, and maygenerate an image of a second shape (e.g., square). The electronicdevice may generate the second image of the second shape (e.g., square),which is arranged by moving a location of the object to face the centerof the image of the second shape (e.g., square). According to variousembodiments, the electronic device may distinguish the background andthe object included in the first image (e.g., rectangular) of the firstshape and then may perform a resizing operation of enlarging at leastpart of the background other than the object in an in-painting method.The electronic device may generate the second image of the second shape(e.g., square), in which the object is not enlarged and at least part ofthe background is enlarged, by performing the resizing operation.According to various embodiments, the electronic device may distinguishbetween a background and an object, which are included in the firstimage of the first shape (e.g., rectangle), may perform a resizingoperation of reducing the length of a side (or edge) of an imageincluding the background excluding the object, and may generate an imageof a second shape (e.g., square). The electronic device may generate thesecond image of the second shape (e.g., square) by composing an objectwith an image of the second shape (e.g., square).

According to an embodiment, in operation 1630, the electronic device mayanalyze the second image. According to an embodiment, the electronicdevice may analyze objects or characteristics of the second image. In anembodiment, the electronic device may obtain linear informationindicating the characteristic of the second image. In an embodiment, theelectronic device may recognize an edge indicating a boundary of atleast one object included in the second image and then may obtain linearinformation indicating the characteristics of the second image from therecognized edge. According to an embodiment, the linear information mayinclude at least one line information or at least one straight lineinformation, which is recognized from the second image or an edgeobtained from the second image, through Hough transform. For example,the linear information may correspond to a Hough line generated throughthe Hough transform from the image.

According to an embodiment, in operation 1640, the electronic device mayconvert the second image of the second shape into a third image of athird shape based on the analysis result. According to an embodiment,when converting (or warping) the second image of the second shape (e.g.,rectangle) into the third image of the third shape (e.g., circle), theelectronic device may determine an image conversion method, which allowsthe distortion (or change) of the object of the second image to bereduced, based on the linear information (e.g., Hough line). In anembodiment, the electronic device may store various equations fortransforming (or warping) an image. The electronic device may determinean equation, which is used to reduce the distortion of the object of theimage when the second image is converted into an image of the thirdshape (e.g., circle), from among various equations based on the linearinformation of the second image of the second shape (e.g., rectangle).According to an embodiment, the electronic device may convert (or warp)the second image into the third image of the third shape (e.g., circle)using the determined image conversion method (or an equation for imageconversion). In various embodiments, the electronic device may separatean object and a background from the second image of the second shape(e.g., square) and then may convert (or warp) an image of the secondshape (e.g., square) including the background excluding the object intoan image of the third shape (e.g., circle) using the determined imageconversion method. In this case, the electronic device may compose theobject with the converted image of the third shape (e.g., circle) andthen may finally generate the third image of the third shape (e.g.,circle). The electronic device may convert (or warp) an image of thesecond shape (e.g., square) including a background other than an objectinto an image of the third shape (e.g., circle), may compose the objectand the background other than the object, and thus may generate thethird image of the third shape. In this case, the distortion of theobject may be reduced.

According to an embodiment, in operation 1650, the electronic device maydisplay the third image of the third shape on a display (e.g., thedisplay module 160 of FIG. 1 or the display 210 of FIG. 2 ). Accordingto an embodiment, the display area of a display may have a circular oredge-rounded shape. According to an embodiment, the electronic devicemay provide a circular image having reduced visual distortion to a userwatching a display having a circular display area. The user of theelectronic device may perceive an image with reduced distortion, andthus the electronic device may provide the user with an improved userexperience.

According to an embodiment of the disclosure, an operating method of anelectronic device (e.g., the electronic device 101 of FIG. 1 , theelectronic device 201 of FIG. 2 , the electronic device (1411, 1421,1431, 1441) of FIG. 14 , the first external electronic device (1412,1422), or the second external electronic device (1433, 1443)) mayinclude: obtaining a first image of a first shape, obtaining linearinformation indicating a morphological characteristic of an object inthe first image of the first shape, determining a conversion method forconverting the first image of the first shape into an image of a secondshape based on the obtained linear information, converting the firstimage of the first shape into a second image of the second shape basedon the determined conversion method, and displaying the converted secondimage of the second shape on a display.

According to an embodiment, the determining may include obtaining thelinear information through Hough transform. The linear information mayinclude information about a Hough line.

According to an embodiment, the obtaining of the linear information mayinclude individually recognizing a background and an object, which areincluded in the first image of the first shape, separating therecognized object from the first image of the first shape, and obtainingthe linear information indicating a morphological characteristic of therecognized background.

According to an embodiment, the converting may include determining theconversion method based on the linear information indicating themorphological characteristic of the recognized background and convertingan image excluding the separated object, into an image of the secondshape based on the determined conversion method.

According to an embodiment, the converting may include generating thesecond image of the second shape by composing the separated object withthe converted image of the second shape.

The electronic device according to various embodiments may be one ofvarious types of electronic devices. The electronic devices may include,for example, a portable communication device (e.g., a smartphone), acomputer device, a portable multimedia device, a portable medicaldevice, a camera, a wearable device, or a home appliance. According toan embodiment of the disclosure, the electronic devices are not limitedto those described above.

It should be appreciated that various embodiments of the disclosure andthe terms used therein are not intended to limit the technologicalfeatures set forth herein to particular embodiments and include variouschanges, equivalents, or replacements for a corresponding embodiment.With regard to the description of the drawings, similar referencenumerals may be used to refer to similar or related elements. It is tobe understood that a singular form of a noun corresponding to an itemmay include one or more of the things, unless the relevant contextclearly indicates otherwise. As used herein, each of such phrases as “Aor B,” “at least one of A and B,” “at least one of A or B,” “A, B, orC,” “at least one of A, B, and C,” and “at least one of A, B, or C,” mayinclude any one of, or all possible combinations of the items enumeratedtogether in a corresponding one of the phrases. As used herein, suchterms as “1st” and “2nd,” or “first” and “second” may be used to simplydistinguish a corresponding component from another, and does not limitthe components in other aspect (e.g., importance or order). It is to beunderstood that if an element (e.g., a first element) is referred to,with or without the term “operatively” or “communicatively”, as “coupledwith,” “coupled to,” “connected with,” or “connected to” another element(e.g., a second element), it means that the element may be coupled withthe other element directly (e.g., wiredly), wirelessly, or via a thirdelement.

As used in connection with various embodiments of the disclosure, theterm “module” may include a unit implemented in hardware, software, orfirmware, and may interchangeably be used with other terms, for example,“logic,” “logic block,” “part,” or “circuitry”. A module may be a singleintegral component, or a minimum unit or part thereof, adapted toperform one or more functions. For example, according to an embodiment,the module may be implemented in a form of an application-specificintegrated circuit (ASIC).

Various embodiments as set forth herein may be implemented as software(e.g., the program 140) including one or more instructions that arestored in a storage medium (e.g., internal memory 136 or external memory138) that is readable by a machine (e.g., the electronic device 101).For example, a processor (e.g., the processor 120) of the machine (e.g.,the electronic device 101) may invoke at least one of the one or moreinstructions stored in the storage medium, and execute it, with orwithout using one or more other components under the control of theprocessor. This allows the machine to be operated to perform at leastone function according to the at least one instruction invoked. The oneor more instructions may include a code generated by a complier or acode executable by an interpreter. The machine-readable storage mediummay be provided in the form of a non-transitory storage medium. Wherein,the term “non-transitory” simply means that the storage medium is atangible device, and does not include a signal (e.g., an electromagneticwave), but this term does not differentiate between where data issemi-permanently stored in the storage medium and where the data istemporarily stored in the storage medium.

According to an embodiment, a method according to various embodiments ofthe disclosure may be included and provided in a computer programproduct. The computer program product may be traded as a product betweena seller and a buyer. The computer program product may be distributed inthe form of a machine-readable storage medium (e.g., compact disc readonly memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded)online via an application store (e.g., PlayStore™), or between two userdevices (e.g., smart phones) directly. If distributed online, at leastpart of the computer program product may be temporarily generated or atleast temporarily stored in the machine-readable storage medium, such asmemory of the manufacturer's server, a server of the application store,or a relay server.

According to various embodiments, each component (e.g., a module or aprogram) of the above-described components may include a single entityor multiple entities, and some of the multiple entities may beseparately disposed in different components. According to variousembodiments, one or more of the above-described components may beomitted, or one or more other components may be added. Alternatively oradditionally, a plurality of components (e.g., modules or programs) maybe integrated into a single component. In such a case, according tovarious embodiments, the integrated component may still perform one ormore functions of each of the plurality of components in the same orsimilar manner as they are performed by a corresponding one of theplurality of components before the integration. According to variousembodiments, operations performed by the module, the program, or anothercomponent may be carried out sequentially, in parallel, repeatedly, orheuristically, or one or more of the operations may be executed in adifferent order or omitted, or one or more other operations may beadded.

While the disclosure has been illustrated and described with referenceto various example embodiments, it will be understood that the variousexample embodiments are intended to be illustrative, not limiting. Itwill be further understood by those skilled in the art that variouschanges in form and detail may be made without departing from the truespirit and full scope of the disclosure, including the appended claimsand their equivalents. It will also be understood that any of theembodiment(s) described herein may be used in conjunction with any otherembodiment(s) described herein.

What is claimed is:
 1. An electronic device comprising: a display; amemory; and a processor operatively connected to the display and thememory, wherein the memory stores instructions that, when executed,cause the processor to: obtain a first image of a first shape; obtainlinear information indicating a morphological characteristic of anobject in the first image of the first shape; determine a conversionmethod for converting the first image of the first shape into an imageof a second shape based on the obtained linear information; convert thefirst image of the first shape into a second image of the second shapebased on the determined conversion method; and display the convertedsecond image of the second shape on the display.
 2. The electronicdevice of claim 1, wherein the first shape corresponds to a rectangularshape, and wherein the instructions, when executed, cause the processorto: convert the first image corresponding to the rectangular shape intoa third image corresponding to a third shape; and obtain the linearinformation from the third image.
 3. The electronic device of claim 2,wherein the instructions, when executed, cause the processor to:individually recognize a background and an object, which are included inthe first image corresponding to the rectangular shape; convert therecognized background other than the recognized object into a backgroundof the third shape by reducing or enlarging the recognized backgroundother than the recognized object; and generate the third image bycomposing the recognized object with the converted background of thethird shape, and wherein the third shape corresponds to a square shape.4. The electronic device of claim 3, wherein the instructions, whenexecuted, cause the processor to: obtain a feature of the first imagecorresponding to the first shape; and individually recognize thebackground and the object based on the obtained feature.
 5. Theelectronic device of claim 1, wherein the instructions, when executed,cause the processor to: obtain the linear information through a Houghtransform, and wherein the linear information includes information abouta Hough line.
 6. The electronic device of claim 1, wherein theinstructions, when executed, cause the processor to: determine theconversion method, which reduces a change between the first image of thefirst shape and the second image of the second shape, based on theobtained linear information.
 7. The electronic device of claim 1,wherein the instructions, when executed, cause the processor to:individually recognize a background and an object, which are included inthe first image of the first shape; separate the recognized object fromthe first image of the first shape; and obtain the linear informationindicating a morphological characteristic of the recognized background.8. The electronic device of claim 7, wherein the instructions, whenexecuted, cause the processor to: determine the conversion method basedon the linear information indicating the morphological characteristic ofthe recognized background; and convert an image excluding the separatedobject, into an image of the second shape based on the determinedconversion method.
 9. The electronic device of claim 8, wherein theinstructions, when executed, cause the processor to: generate the secondimage of the second shape by composing the separated object with theconverted image of the second shape.
 10. The electronic device of claim1, wherein the instructions, when executed, cause the processor to:individually recognize a background and an object, which are included inthe first image of the first shape; generate a third image obtained byseparating the recognized object from the first image of the firstshape; convert the generated third image into a fourth image of thesecond shape by obtaining the linear information from the generatedthird image; and display a fifth image of the second shape obtained bycomposing the recognized object with the converted fourth image, on thedisplay.
 11. The electronic device of claim 1, wherein the memory storesa database including at least one equation for converting an image ofthe first shape into an image of the second shape.
 12. The electronicdevice of claim 1, wherein the instructions, when executed, cause theprocessor to: learn a morphological characteristic of an object in thefirst image using a machine learning model; and determine the conversionmethod based on the learned result.
 13. The electronic device of claim1, wherein the instructions, when executed, cause the processor to:obtain the linear information from at least one external electronicdevice.
 14. The electronic device of claim 1, wherein the displayincludes a circular display area, and wherein the instructions, whenexecuted, cause the processor to: display the second image of the secondshape in the circular display area.
 15. The electronic device of claim1, wherein the instructions, when executed, cause the processor to:convert the first image of the first shape into a grayscale; recognizean edge indicating a boundary of at least one object included in thefirst image, from the first image converted into the grayscale; andobtain the linear information corresponding to at least one straightline based on the recognized edge.
 16. An operating method of anelectronic device, the method comprising: obtaining a first image of afirst shape; obtaining linear information indicating a morphologicalcharacteristic of an object in the first image of the first shape;determining a conversion method for converting the first image of thefirst shape into an image of a second shape based on the obtained linearinformation; converting the first image of the first shape into a secondimage of the second shape based on the determined conversion method; anddisplaying the converted second image of the second shape on a display.17. The method of claim 16, wherein the determining includes: obtainingthe linear information through a Hough transform, and wherein the linearinformation includes information about a Hough line.
 18. The method ofclaim 16, wherein the obtaining of the linear information includes:individually recognizing a background and an object, which are includedin the first image of the first shape; separating the recognized objectfrom the first image of the first shape; and obtaining the linearinformation indicating a morphological characteristic of the recognizedbackground.
 19. The method of claim 18, wherein the converting includes:determining the conversion method based on the linear informationindicating the morphological characteristic of the recognizedbackground; and converting an image excluding the separated object, intoan image of the second shape based on the determined conversion method.20. The method of claim 19, wherein the converting includes: generatingthe second image of the second shape by composing the separated objectwith the converted image of the second shape.